Update to use new test data models#713
Conversation
Fix test issues. Some due to new modle. Some due to not running tests.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR updates test suites and docs to align with the new shared test-data model naming and adjusts C# integration test setup/streaming handling.
Changes:
- Renames embedding test model aliases across Rust, Python, JS, and C# tests.
- Updates C# embedding expected model/value assertions and initializes test utilities via a static constructor.
- Adjusts C# streaming chat/tool tests to stop before unsupported usage responses.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
sdk/rust/tests/integration/common/mod.rs |
Updates shared Rust embedding test model alias. |
sdk/python/test/README.md |
Updates documented Whisper test variant version. |
sdk/python/test/conftest.py |
Updates shared Python embedding test model alias. |
sdk/js/test/testUtils.ts |
Updates shared JS embedding test model alias. |
sdk/js/test/openai/embeddingClient.test.ts |
Updates embedding cache assertion text. |
sdk/cs/test/FoundryLocal.Tests/Utils.cs |
Moves test utility initialization into a static constructor and trims whitespace. |
sdk/cs/test/FoundryLocal.Tests/EmbeddingClientTests.cs |
Updates C# embedding variant references and known expected value. |
sdk/cs/test/FoundryLocal.Tests/ChatCompletionsTests.cs |
Breaks streaming test loops when stop finish reason is reached. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Agent-Logs-Url: https://github.com/microsoft/Foundry-Local/sessions/d43a24ee-f636-4980-92a0-4bbe962c04b9 Co-authored-by: skottmckay <979079+skottmckay@users.noreply.github.com>
….com/microsoft/Foundry-Local into skottmckay/UpdateToNewTestDataModels
|
@copilot why are tests failing to find the new model? are we not checking out the latest test-data-shared?
|
Agent-Logs-Url: https://github.com/microsoft/Foundry-Local/sessions/bd80ca0f-c1df-4bc8-b17c-51c2b970aa3b Co-authored-by: skottmckay <979079+skottmckay@users.noreply.github.com>
The test-data-shared checkout is fine. The issue was a typo in |
|
@copilot or are we missing the version number from the model id? these were the changes |
No version number is needed. The The actual cause: commit |
|
@copilot C# tests passed. python, js and rust tests failed |
…g-0.6b The model variant ID is qwen3-embedding-0.6b-generic-cpu:1 but the catalog alias is qwen3-embedding-0.6b (without -generic-cpu). C# tests passed because they lookup by variant ID directly. Python/JS/Rust tests failed because they search by alias == 'qwen3-embedding-0.6b-generic-cpu' which doesn't match. - JS testUtils.ts: qwen3-embedding-0.6b-generic-cpu -> qwen3-embedding-0.6b - Python conftest.py: qwen3-embedding-0.6b-generic-cpu -> qwen3-embedding-0.6b - Rust common/mod.rs: qwen3-embedding-0.6b-generic-cpu -> qwen3-embedding-0.6b - JS embeddingClient.test.ts: use EMBEDDING_MODEL_ALIAS in error message - README: fix alias column in test models table Agent-Logs-Url: https://github.com/microsoft/Foundry-Local/sessions/785d0b4d-9f16-49a5-b984-bdfaa025e275 Co-authored-by: skottmckay <979079+skottmckay@users.noreply.github.com>
The root cause: Fixed in commit |
|
@copilot alias is qwen3-embedding-0.6b as the model is coming from the catalog. if it wasn't the alias is closer to the model id |
Also Fix test issues.
Some due to new models.
Some due to not running tests.
The Utils init of whether test data is available doesn't seem to fire before we check the value in the 'skip if not available' attribute. Changed to use static ctor to ensure it's inited.